package com.ruoyi.project.asset.house.model.vo;

import java.math.BigDecimal;

import com.ruoyi.common.utils.bean.BeanUtils;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.project.asset.assets.domain.Assets;
import com.ruoyi.project.asset.assets.model.vo.AssetsVO;
import com.ruoyi.project.asset.house.domain.House;

import lombok.Data;

/**
 * 房屋提交
 * @author xianz
 *
 */
@Data
public class HouseVO extends AssetsVO{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 290460392311709433L;


    /** 建筑面积 */
    @Excel(name = "建筑面积")
    private BigDecimal buildArea;

    /** 资产id */
    private Long assetsId;
	
    /**
     * VO转PO
     * @return
     */
    public House houseVoToHousePo() {
    	House house = new House();
    	BeanUtils.copyPropertiesFilterNull(this, house, new String[] {});
    	return house;
    }
    /**
     * VO转PO
     * @return
     */
    public Assets houseVoToAssetsPo() {
    	Assets assets = new Assets();
    	BeanUtils.copyPropertiesFilterNull(this, assets, new String[] {});
    	return assets;
    }
    
}
